projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b64577
)
popover: Use the right area for drawing the background
author
Timm Bäder
<mail@baedert.org>
Sun, 26 Oct 2014 14:21:06 +0000
(15:21 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 26 Oct 2014 14:21:06 +0000
(15:21 +0100)
The border shouldn't be subtracted.
gtk/gtkpopover.c
patch
|
blob
|
history
diff --git
a/gtk/gtkpopover.c
b/gtk/gtkpopover.c
index 0106c65bf62ac4775db5aeacfd1856df6c9e8b2e..ee247f64aaa4931801831f7ebd1c3257546f5454 100644
(file)
--- a/
gtk/gtkpopover.c
+++ b/
gtk/gtkpopover.c
@@
-856,9
+856,9
@@
gtk_popover_draw (GtkWidget *widget,
/* Render the rect background */
gtk_render_background (context, cr,
- rect_x1
+ border.left, rect_y1 + border.top
,
- rect_x2 - rect_x1
- border.left - border.right
,
- rect_y2 - rect_y1
- border.top - border.bottom
);
+ rect_x1
, rect_y1
,
+ rect_x2 - rect_x1,
+ rect_y2 - rect_y1);
gtk_popover_get_gap_coords (popover,
&initial_x, &initial_y,